<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function $$ (id){
				return document.getElementById(id);
			}
			window.onload = function(){
				var cnv = $$("canvas");
				var cxt = cnv.getContext("2d");
				
				var text = 'Nil-57';
				cxt.font = 'bold 20px 微软雅黑';
				
				cxt.fillStyle = 'hotpink';
				cxt.save();
				cxt.fillText(text,50,40);
				
				cxt.fillStyle = 'lightskyblue';
				cxt.fillText(text,50,80);
				
				cxt.restore();
			}
		</script>
	</head>
	<body>
		<canvas id="canvas" width="200" height="150" style="border: 1px dashed gray;"></canvas>
	</body>
</html>
